import request from '@/utils/request'

// 查询水位观测点列表
export function listWaterStation(query) {
  return request({
    url: '/manage/waterStation/list',
    method: 'get',
    params: query
  })
}

// 查询水位观测点详细
export function getWaterStation(waterStationId) {
  return request({
    url: '/manage/waterStation/' + waterStationId,
    method: 'get'
  })
}

// 新增水位观测点
export function addWaterStation(data) {
  return request({
    url: '/manage/waterStation',
    method: 'post',
    data: data
  })
}

// 修改水位观测点
export function updateWaterStation(data) {
  return request({
    url: '/manage/waterStation',
    method: 'put',
    data: data
  })
}

// 删除水位观测点
export function delWaterStation(waterStationId) {
  return request({
    url: '/manage/waterStation/' + waterStationId,
    method: 'delete'
  })
}
